package com.orange.core.pojo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 退款状态
 */
@AllArgsConstructor
@Getter
public enum ERefundStatus implements IDict {

    NOT_REFUNDED(0, "未退款"),

    REFUNDED(1, "已退款"),
    ;

    private final int value;
    private final String label;

    public static String getLabel(int value) {
        for (ERefundStatus e : ERefundStatus.values()) {
            if (e.value == value) {
                return e.label;
            }
        }
        throw new IllegalArgumentException("退款状态不存在");
    }
} 